#include "gy61.h"

u8 attitude_flag;
u8 attitude_buf[11]={0x55,0x53,0};
void Get_Attitude(float *pitch, float *roll, float *yaw)
{
	*pitch = ((attitude_buf[5]<<8|attitude_buf[4])/32768.0*180);  
	*roll = ((attitude_buf[3]<<8|attitude_buf[2])/32768.0*180); 
	*yaw = ((attitude_buf[7]<<8|attitude_buf[6])/32768.0*180);
}
